package com.ruoyi.lvlian.mapper;

import java.util.List;

import com.ruoyi.lvlian.domain.LhsOrderItem;
import com.ruoyi.lvlian.dto.LhsOrderItemDto;
import com.ruoyi.lvlian.vo.LhsOrderVo;
import org.apache.ibatis.annotations.Param;
/**
 * 莱回收订单项Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-23
 */
public interface LhsOrderItemMapper {
    /**
     * 查询莱回收订单项
     *
     * @param id 莱回收订单项主键
     * @return 莱回收订单项
     */
    public LhsOrderItem selectLhsOrderItemById(String id);

    /**
     * 查询莱回收订单项列表
     *
     * @param lhsOrderItem 莱回收订单项
     * @return 莱回收订单项集合
     */
    public List<LhsOrderItem> selectLhsOrderItemList(LhsOrderItemDto lhsOrderItem);

    /**
     * 新增莱回收订单项
     *
     * @param lhsOrderItem 莱回收订单项
     * @return 结果
     */
    public int insertLhsOrderItem(LhsOrderItem lhsOrderItem);

    /**
     * 修改莱回收订单项
     *
     * @param lhsOrderItem 莱回收订单项
     * @return 结果
     */
    public int updateLhsOrderItem(LhsOrderItem lhsOrderItem);

    /**
     * 删除莱回收订单项
     *
     * @param id 莱回收订单项主键
     * @return 结果
     */
    public int deleteLhsOrderItemById(String id);

    /**
     * 批量删除莱回收订单项
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLhsOrderItemByIds(String[] ids);

    List<LhsOrderItem> selectOrderItemsByOrderIds(@Param("orderIds") List<String > orderIds);

    int batchInsertLhsOrderItem(List<LhsOrderItem> lhsOrderItemList);


}
